package com.xunji.user.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xunji.user.entity.User;
import com.xunji.user.vo.rep.UserPageResponse;
import com.xunji.user.vo.req.UserAddRequest;
import com.xunji.user.vo.req.UserQueryRequest;
import com.xunji.user.vo.req.UserSearchRequest;
import com.xunji.user.vo.req.UserUpdateRequest;

import java.util.List;

public interface UserService {
    User login(String userId);

    User loginByName(String name);

    User getUserById(String id);

    void addUser(UserAddRequest request);

    void updateUser(UserUpdateRequest request);

    void deleteUser(String id);

    void restPwd(String id);

    void updatePwd(String id, String pwd);

    List<User> getSimilarAccountByLoginName(String loginName);

    Page<UserPageResponse> page(UserQueryRequest request);

    List<User> selectByOrgId(Integer orgId);

    List<User> userSearchList(UserSearchRequest searchRequest, String userId);
}
